package com.sicaolong.partterndesign._05_decorate;

import com.sicaolong.partterndesign._05_decorate.decorate.WeChatDecorate;
import com.sicaolong.partterndesign._05_decorate.decorate.WeLinkDecorate;
import com.sicaolong.partterndesign._05_decorate.impl.EmailNotifier;

public class DecorateTest {
    public static void main(String[] args) {
        Notifier notifier = new EmailNotifier();
        notifier = new WeChatDecorate(notifier);
        notifier = new WeLinkDecorate(notifier);
        notifier.send("有告警了，请scl抓紧处理");
    }
}
